package Week3.num.week3Test1.opp02;


public class CompanyTest {
    public static void main(String[] args) {
        //查询工资的月份
        int month = 10;
        //创建对象
        SalariedEmployee emp01 = new SalariedEmployee("01",1,5000.00);
        HourlyEmployee emp02 = new HourlyEmployee("02",10,20,170);
        SalesEmployee emp03 = new SalesEmployee("03",5,100000,0.05);
        Company company = new Company(new SalariedEmployee("01",1,5000.00));
        company.printSal(6);
        //调用输出员工工资的方法
        company.printSal(emp03,1);

    }
}
